package io.rocketman.common.plugin.factory;

import io.rocketman.common.plugin.PluginInterface;

import java.util.Map;

/**
 * @author he peng
 * @create 2018/5/28 19:51
 * @see
 */

@PluginInterface
public interface PluginFactory {

    <T> Map<String , Class<? extends T>> getPlugins(Class<T> pluginInterfaceCls);

    <T> T getPlugin(Class<T> pluginInterfaceCls , String name);
}
